//
//  CPHomeCell.m
//  CPApp
//
//  Created by 健健 on 2018/3/21.
//  Copyright © 2018年 Class. All rights reserved.
//

#import "CPHomeCell.h"
#import "CPHomeModel.h"

@interface CPHomeCell ()
@property (weak, nonatomic) IBOutlet UILabel *zhuanjia;
@property (weak, nonatomic) IBOutlet UILabel *title;
@property (weak, nonatomic) IBOutlet UILabel *detail;
@property (weak, nonatomic) IBOutlet UILabel *caiNo;
@property (weak, nonatomic) IBOutlet UILabel *staute;
@property (weak, nonatomic) IBOutlet UILabel *nextplayname;

@end
@implementation CPHomeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setModel:(CPHomeModel *)model {
    _model = model;
    self.title.text = model.username;
    self.detail.text = model.hitnum;
    self.caiNo.text = [model.calc stringByReplacingOccurrencesOfString:@"," withString:@" "];
    self.staute.text = model.award;
    self.nextplayname.text = model.nextplayname;
}

@end
